package com.nike.util;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Locale;
import java.util.TimeZone;

public class NikeDateUtil {
	public static SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS");
	public static SimpleDateFormat sdf = new SimpleDateFormat("EEE, dd MMM yyyy HH:mm:ss 'GMT'",Locale.US);
	
	public static void main(String[] args) {
		System.out.println(getCurrentTDate());
		System.out.println(getCurrentGMTDate());
	}
	public static String getCurrentTDate() {
		Date date = new Date();
		simpleDateFormat.setTimeZone(TimeZone.getTimeZone("GMT"));
		return simpleDateFormat.format(date);
	}
	public static String getCurrentGMTDate() {
		Date date = new Date();
		sdf.setTimeZone(TimeZone.getTimeZone("GMT"));
		return sdf.format(date);
	}
}
